//
//  CategoryIndexView.m
//  BigJoy
//
//  Created by Rowling on 2017/7/14.
//  Copyright © 2017年 Rowling. All rights reserved.
//

#import "CategoryIndexView.h"

@interface CategoryIndexView()
@property (weak, nonatomic) IBOutlet UIButton *morenButton;
@property (weak, nonatomic) IBOutlet UIButton *reduButton;
@property (weak, nonatomic) IBOutlet UIButton *shijianButton;
@property (weak, nonatomic) IBOutlet UIButton *jiageButton;
@property (nonatomic,strong) NSArray *buttonArray;
@end

@implementation CategoryIndexView

+(instancetype)fastLogin {
    return FastLogin;
}

-(void)awakeFromNib {
    [super awakeFromNib];
    self.buttonArray = @[self.morenButton,self.reduButton,self.shijianButton,self.jiageButton];
}

- (IBAction)buttonClick:(UIButton *)sender {
    for (UIButton * btn in self.buttonArray) {
        btn.selected = NO;
    }
    sender.selected = YES;
    if (self.clickBlock) {
        self.clickBlock(sender);
    }
}

@end
